import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default {
    custom: {
        validate: ({ value }) => {
            if(!value) return true;

            const regExp = /^1\d{10}$/;

            if(regExp.test(value)) return true;

            return false;
        },
       error: () => `${getLabel('510152','请输入长度为11位的手机号')}`
        }
  }